package com.example.demo.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Description:
 * User: 故我
 * Date: 2023-11-05
 * Time: 11:37
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @RequestMapping("/hi")
    public String Hi(String name) {
        System.out.println("执行了 Hi 方法!");
        return "Hi " + name;
    }
}
